<%@page import="cn.sendto.service.UserInfoService"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"  errorPage="../err.jsp"%>
    <jsp:include page="../lock.jsp"></jsp:include>
<%
	request.setCharacterEncoding("UTF-8");
	String id = request.getParameter("id");
	
	UserInfoService uis = new UserInfoService();
	int i = uis.delUser(id);
	if(i > 0){
		request.setAttribute("userinfo",  "<span style='color:red;'>删除成功</span>");
		request.getRequestDispatcher("userlist.jsp").forward(request, response);
		return;
	}else{
		request.setAttribute("userinfo", "<span style='color:red;'>删除失败</span>");
		request.getRequestDispatcher("userlist.jsp").forward(request, response);
		return;
	}
%>